<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once(APPPATH . 'models/model_crud.php');

class Status extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
	}

	public function index()
	{
		model_crud::$tabel='phones';
		model_crud::$tabel_join = array();

		$data = (array) model_crud::read()[0];

		$data['modem_status'] = $this->lib_daemon->modem_status();

		$this->load->view('theme/theme_kepala');
		$this->load->view('status', $data);
		$this->load->view('theme/theme_kaki');
	}
}
